package entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Commodityhouse entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "commodityhouse", catalog = "house")
public class Commodityhouse implements java.io.Serializable {

	// Fields

	private Integer id;
	private Housetypes housetypes=new Housetypes();
	private Area area=new Area();
	private String chName;
	private String chAddress;
	private String chBuildArea;
	private String chVirescenceArea;
	private String chTerraArea;
	private String chSellAddress;
	private String chPrice;
	private String chDeveloper;
	private String chInvest;
	private String chPresellWarrant;
	private String chIndustry;
	private String chIntro;
	private String chCounterpart;
	private String chScene;
	private String chFamily;
	private String chPic;
    private String chPhone;
    private String chType;
	// Constructors

	

	public Commodityhouse(Integer id, Housetypes housetypes, Area area,
			String chName, String chAddress, String chBuildArea,
			String chVirescenceArea, String chTerraArea, String chSellAddress,
			String chPrice, String chDeveloper, String chInvest,
			String chPresellWarrant, String chIndustry, String chIntro,
			String chCounterpart, String chScene, String chFamily,
			String chPic, String chPhone, String chType) {
		super();
		this.id = id;
		this.housetypes = housetypes;
		this.area = area;
		this.chName = chName;
		this.chAddress = chAddress;
		this.chBuildArea = chBuildArea;
		this.chVirescenceArea = chVirescenceArea;
		this.chTerraArea = chTerraArea;
		this.chSellAddress = chSellAddress;
		this.chPrice = chPrice;
		this.chDeveloper = chDeveloper;
		this.chInvest = chInvest;
		this.chPresellWarrant = chPresellWarrant;
		this.chIndustry = chIndustry;
		this.chIntro = chIntro;
		this.chCounterpart = chCounterpart;
		this.chScene = chScene;
		this.chFamily = chFamily;
		this.chPic = chPic;
		this.chPhone = chPhone;
		this.chType = chType;
	}

	public String getChType() {
		return chType;
	}

	public void setChType(String chType) {
		this.chType = chType;
	}



	public String getChPhone() {
		return chPhone;
	}

	public void setChPhone(String chPhone) {
		this.chPhone = chPhone;
	}

	public String getChFamily() {
		return chFamily;
	}

	public void setChFamily(String chFamily) {
		this.chFamily = chFamily;
	}

	public String getChPic() {
		return chPic;
	}

	public void setChPic(String chPic) {
		this.chPic = chPic;
	}

	/** default constructor */
	public Commodityhouse() {
	}

	/** minimal constructor */
	public Commodityhouse(Housetypes housetypes, Area area, String chName,
			String chAddress, String chBuildArea, String chSellAddress,
			String chDeveloper) {
		this.housetypes = housetypes;
		this.area = area;
		this.chName = chName;
		this.chAddress = chAddress;
		this.chBuildArea = chBuildArea;
		this.chSellAddress = chSellAddress;
		this.chDeveloper = chDeveloper;
	}

	/** full constructor */
	
	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "houseTypesid", nullable = false)
	public Housetypes getHousetypes() {
		return this.housetypes;
	}

	public void setHousetypes(Housetypes housetypes) {
		this.housetypes = housetypes;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "areaid", nullable = false)
	public Area getArea() {
		return this.area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	@Column(name = "ch_name", nullable = false, length = 50)
	public String getChName() {
		return this.chName;
	}

	public void setChName(String chName) {
		this.chName = chName;
	}

	@Column(name = "ch_address", nullable = false, length = 100)
	public String getChAddress() {
		return this.chAddress;
	}

	public void setChAddress(String chAddress) {
		this.chAddress = chAddress;
	}

	@Column(name = "ch_buildArea", nullable = false, length = 50)
	public String getChBuildArea() {
		return this.chBuildArea;
	}

	public void setChBuildArea(String chBuildArea) {
		this.chBuildArea = chBuildArea;
	}

	@Column(name = "ch_virescenceArea", length = 50)
	public String getChVirescenceArea() {
		return this.chVirescenceArea;
	}

	public void setChVirescenceArea(String chVirescenceArea) {
		this.chVirescenceArea = chVirescenceArea;
	}

	@Column(name = "ch_terraArea", length = 50)
	public String getChTerraArea() {
		return this.chTerraArea;
	}

	public void setChTerraArea(String chTerraArea) {
		this.chTerraArea = chTerraArea;
	}

	@Column(name = "ch_sellAddress", nullable = false, length = 50)
	public String getChSellAddress() {
		return this.chSellAddress;
	}

	public void setChSellAddress(String chSellAddress) {
		this.chSellAddress = chSellAddress;
	}

	@Column(name = "ch_price", length = 30)
	public String getChPrice() {
		return this.chPrice;
	}

	public void setChPrice(String chPrice) {
		this.chPrice = chPrice;
	}

	@Column(name = "ch_developer", nullable = false, length = 50)
	public String getChDeveloper() {
		return this.chDeveloper;
	}

	public void setChDeveloper(String chDeveloper) {
		this.chDeveloper = chDeveloper;
	}

	@Column(name = "ch_invest", length = 50)
	public String getChInvest() {
		return this.chInvest;
	}

	public void setChInvest(String chInvest) {
		this.chInvest = chInvest;
	}

	@Column(name = "ch_presellWarrant", length = 50)
	public String getChPresellWarrant() {
		return this.chPresellWarrant;
	}

	public void setChPresellWarrant(String chPresellWarrant) {
		this.chPresellWarrant = chPresellWarrant;
	}

	@Column(name = "ch_industry", length = 50)
	public String getChIndustry() {
		return this.chIndustry;
	}

	public void setChIndustry(String chIndustry) {
		this.chIndustry = chIndustry;
	}

	@Column(name = "ch_intro", length = 200)
	public String getChIntro() {
		return this.chIntro;
	}

	public void setChIntro(String chIntro) {
		this.chIntro = chIntro;
	}

	@Column(name = "ch_counterpart", length = 150)
	public String getChCounterpart() {
		return this.chCounterpart;
	}

	public void setChCounterpart(String chCounterpart) {
		this.chCounterpart = chCounterpart;
	}

	@Column(name = "ch_scene", length = 100)
	public String getChScene() {
		return this.chScene;
	}

	public void setChScene(String chScene) {
		this.chScene = chScene;
	}

}